package univer.oko.queryAnalizer.sqlEditor.actions;


import univer.oko.queryAnalizer.sqlEditor.CDEditorPane;
import univer.oko.utilities.CDUtilities;

import javax.swing.*;
import java.awt.event.ActionEvent;

/**
 * Created by Sergey Kharlamov.
 * Date: 23.07.2006
 * Time: 17:56:45
 */
public class UndoAction extends AbstractControlAction {

    CDEditorPane editorPane;
    public static String TEXT = "Undo action text";

    public UndoAction(CDEditorPane sourceWindow) {
        super(TEXT, false, KeyStroke.getKeyStroke("ctrl Z"/*#Frozen*/), 'U',
                CDUtilities.createIcon("find.gif"));
        editorPane = sourceWindow;
    }

    public void actionPerformed(ActionEvent e) {
        //  editorPane.doUndo();
    }

    public boolean isControlAction() {
        return true;
    }

    public boolean shouldDisableIfNotPresent() {
        return true;
    }
}
